package com.hotel.wallet.config;

import com.hotel.common.config.RabbitKeyConfig;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration // 表明是配置类
public class RabbitConfig {


    @Bean // 表 在容器中 创建rabbit 队列
    public Queue smsQueue(){

        return new Queue(RabbitKeyConfig.Q_SENDSMS);

    }


    @Bean  // 积分成长值队列
    public Queue growthQueue(){
        return new Queue(RabbitKeyConfig.Q_USER_GROWTH);
    }

}
